package com.akuhome.resource.DO;

import com.akuhome.resource.entity.User;
import com.akuhome.resource.enums.NeedType;

import java.sql.Timestamp;
import java.util.Date;

public class Approve {
    Integer id;
    //审批节点
    String node;
    //审批日期
    Date date;
    //审批结果(0:通过,1:驳回)
    Boolean result;
    //审批意见
    String detail;
    Timestamp createTime;
    Timestamp updateTime;
    User user;
    NeedType needType;
    String projectUid;

    public Approve() {
    }

    public Approve(NeedType needType, String node) {
        this.needType = needType;
        this.node = node;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Boolean getResult() {
        return result;
    }

    public void setResult(Boolean result) {
        this.result = result;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getProjectUid() {
        return projectUid;
    }

    public void setProjectUid(String projectUid) {
        this.projectUid = projectUid;
    }

    public NeedType getNeedType() {
        return needType;
    }

    public void setNeedType(NeedType needType) {
        this.needType = needType;
    }
}
